import { ButtonList } from '@/views/flowDesign/constant';

export const GetButton = (type: string) => {
  if (type === 'transactor') {
    return ButtonList.filter((it) =>
      ['hold', 'submit', 'forward', 'fallback'].includes(it.key),
    );
  } else if (type === 'approve') {
    return ButtonList.filter((it) =>
      [
        'agreement',
        'disagree',
        'hold',
        'countersign',
        'forward',
        'fallback',
      ].includes(it.key),
    );
  }
};
